cmake_minimum_required(VERSION 3.13)
project(cli CXX)

set(CMAKE_CXX_STANDARD 17)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)

set(PROJECT_SRC
    src/element.cpp
    src/command_expr.cpp
    src/command_builder.cpp
    src/element_inserter.cpp
    src/utils.cpp)

add_library(${PROJECT_NAME} SHARED ${PROJECT_SRC})
target_include_directories(${PROJECT_NAME} PRIVATE include)

add_subdirectory(test)
